package com.h3c.ptability.mapstruct;

import com.h3c.ptability.dto.PtDeptDTO;
import com.h3c.ptability.entity.PtDept;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenyifan
 * @date 2022/8/23 14:06
 */
@Mapper
public interface PtDeptMapstruct {

    PtDeptMapstruct INSTANCE = Mappers.getMapper(PtDeptMapstruct.class);

    /**
     * dto转实体类
     * @param deptDTO
     * @return
     */
    List<PtDept> dtoList2entityList(List<PtDeptDTO> deptDTO);
}
